import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: 'event',
    name: 'EventManager',
    component: () => import('../views/event/index.vue')
  },
]

export default function getRouter(baseUrl: string = '/') {
  return createRouter({
    history: createWebHistory(),
    routes: [
      {
        path: baseUrl,
        name: 'BaseLayout',
        children: routes
      }
    ]
  })
}
